apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
  labels:
    k8s-app: telnet-curl-tcpdump
    qcloud-app: telnet-curl-tcpdump
  name: telnet-curl-tcpdump
  namespace: default
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      k8s-app: telnet-curl-tcpdump
      qcloud-app: telnet-curl-tcpdump
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        k8s-app: telnet-curl-tcpdump
        qcloud-app: telnet-curl-tcpdump
    spec:
      containers:
      - image: {{ registry_domain }}/library/tlinux2.2-tcpdump:v1
        imagePullPolicy: IfNotPresent
        command: ["/bin/bash"]
        args: ["-c", "sleep 100000"]
        name: telnet-curl-tcpdump
        resources:
          limits:
            cpu: 500m
            memory: 500Mi
          requests:
            cpu: 250m
            memory: 256Mi
        securityContext:
          privileged: false
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
